how to pre process image data for Deep learning